/*
 * @Author: 陈永浩(cyh1231wp@163.com)
 * @Date: 2020-12-18 14:55:20
 * @LastEditors: 陈永浩(cyh1231wp@163.com)
 * @LastEditTime: 2021-02-23 21:33:49
 */
export function getCache(key) {
  return JSON.parse(sessionStorage.getItem(key))
}

export function setCache(key, value) {
  return sessionStorage.setItem(key, JSON.stringify(value))
}

export function removeCache(key) {
  return sessionStorage.removeItem(key)
}

export function clear() {
  return sessionStorage.clear()
}